package com.lw.common.basemodel;

import java.io.Serializable;

public class Json implements Serializable {
	private static final long serialVersionUID = -7743207517521826662L;

	private boolean success = false;

	private String msg = "";
	
	private int statusCode ;

	private Object obj = null;

	public boolean isSuccess() {
		return success;
	}

	public Json setSuccess(boolean success) {
		this.success = success;
		return this;
	}

	public String getMsg() {
		return msg;
	}

	public Json setMsg(String msg) {
		this.msg = msg;
		return this;
	}

	public Object getObj() {
		return obj;
	}


	public int getStatusCode() {
		return statusCode;
	}

	public Json setStatusCode(int statusCode) {
		this.statusCode = statusCode;
		return this;
	}

	public Json setObj(Object obj) {
		if (obj == null) {
			this.obj = "defult";
		} else {
			this.obj = obj;
		}

		return this;
	}

}
